package com.ncut.service;

import com.ncut.dto.ShoppingCartDTO;
import com.ncut.entity.ShoppingCart;

import java.util.List;

/**
 * @FileName ShoppingCartService
 * @Description
 * @Author Sword
 * @date 2025-07-18
 **/


public interface ShoppingCartService {

    /**
     * 添加购物车
     *
     * @param shoppingCartDTO
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查看购物车
     *
     * @return
     */
    List<ShoppingCart> showShoppingCart();

    /**
     * 清空购物车
     */
    void cleanShoppingCart();

    /**
     * 删除购物车商品
     *
     * @param shoppingCartDTO
     */
    void subShoppingCart(ShoppingCartDTO shoppingCartDTO);
}
